import { Component, EventEmitter, Output } from '@angular/core';
import { ScenarioConfig } from 'src/components/scenarios/models';

@Component({
  selector: 'app-scenario-setting',
  templateUrl: './scenario-setting.component.html',
  styleUrl: './scenario-setting.component.scss'
})
export class ScenarioSettingComponent {
  sidebarVisible: boolean = false;
  scenario?: ScenarioConfig;
  @Output()
  onHide: EventEmitter<void> = new EventEmitter();

  onEdit(scenario: ScenarioConfig) {
    this.scenario = scenario;
    this.sidebarVisible = true;
  }
  onSidebarHide() {
    this.onHide.next();
  }
}
